#ifndef DYMY_UTILS_H
#define DYMY_UTILS_H
#include <string>
#include <vector>
#include <optional>
#include "widget_codec_global.h"
namespace dymy
{
    WIDGET_CODEC_EXPORT std::vector<std::string> split(const std::string &ss, const std::string &s) noexcept;
    WIDGET_CODEC_EXPORT std::optional<int> parse_int(const std::string &input) noexcept;
    WIDGET_CODEC_EXPORT std::optional<int> parse_color(const std::string &value) noexcept;
    WIDGET_CODEC_EXPORT std::string to_color(int color) noexcept;
    WIDGET_CODEC_EXPORT std::string trim(const std::string &s) noexcept;
    WIDGET_CODEC_EXPORT std::string remove_end_semicolon(const std::string &s) noexcept;
    WIDGET_CODEC_EXPORT void string_replace(std::string &source, const std::string &from, const std::string &to);

}
#endif // DYMY_UTILS_H
